package com.homeorder.service;

import java.util.List;

import com.homeorder.dao.HibDaoImpl;
import com.homeorder.entity.BandInfo;

public class BandServiceImpl implements BandService {
	HibDaoImpl baseDao;

	public void setBaseDao(HibDaoImpl baseDao) {
		this.baseDao = baseDao;
	}
	
	/**
	 * 获取所有品牌信息
	 */
	@SuppressWarnings("unchecked")
	public List<BandInfo> getBand() {
		return (List<BandInfo>) baseDao.query("from BandInfo", null);
	}
}
